<!DOCTYPE html>

<head>
    <meta charset="utf-8">
    <title>用户登录</title>

</head>
<style>
    *{
        margin: 0;
        padding: 0;
    }

    section{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100vh;
        background: url("https://www.10soo.com/uploads/allimg/152507_574.jpg");
        background-position: center;
        background-size: cover;
    }

    .form-box{
        position: relative;
        width: 400px;
        height: 450px;
        display: flex;
        justify-content: center;
        background-color: transparent;
        border: 2px solid rgba(255,255,255,0.5);
        backdrop-filter: blur(8px);
        align-items: center;
    }

    h2{
        font-size: 32px;
        color: white;
        text-align: center;
    }

    .inputbox{
        position: relative;
        margin: 30px 0;
        width: 310px;
        border-bottom: 2px solid white;
    }

    .inputbox label{
        position: absolute;
        top: 50%;
        left: 5px;
        transform: translateY(-50%);
        color: white;
        font-size: 16px;
        pointer-events: none;
        transition: 0.5s;
    }

    input:focus ~ label,
    input:valid ~ label{
        top: -5px;
    }

    .inputbox input{
        width: 100%;
        height: 50px;
        background-color: transparent;
        border: none;
        outline: none;
        font-size: 16px;
        padding: 0 35px 0 5px;
        color: white;
    }

    .inputbox ion-icon{
        position: absolute;
        right: 8px;
        top: 20px;
        font-size: 18px;
        color: white;
    }

    .forget{
        margin: -15px 0 15px;
        font-size: 14px;
        color: white;
        display: flex;
        justify-content: center;
    }

    .forget label input{
        margin-right: 5px;
    }

    .forget a{
        text-decoration: none;
        color: white;
        margin-left: 10px;
    }

    button{
        width: 100%;
        height: 40px;
        border-radius: 20px;
        border: none;
        outline: none;
        font-size: 16px;
        font-weight: 600;
        background: white;
    }

    .register{
        font-size: 14px;
        color: white;
        text-align: center;
        margin: 25px 0 10px;
    }


</style>

<body>
    <section>
        <div class="form-box">
            <div class="form-value">
                <form action="" method="post">
                    <h2>登录</h2>
                    <div class="inputbox">
                        <ion-icon name="person-outline"></ion-icon>
                        <input type="text" name="username" value="" placeholder="用户名">
                        <label for="">用户名</label>
                    </div>
                    <div class="inputbox">
                        <ion-icon name="lock-closed-outline"></ion-icon>
                        <input type="password" name="password" value="" placeholder="密码">
                        <label for="">密码</label>
                    </div>
                    <div class="forget">
                        <label><input type="checkbox" name="remember_me" id="remember_me"/>记住密码</label>
                        <a href="">忘记密码</a>
                    </div>
                    <button>登录</button>
                    <div class="register">
                        <p >没有账户请<a href="register">
                            <strong style="color: aqua;">先注册</strong></a></p>
                    </div>
                </form>
            </div>
        </div>
    </section>
    <script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
    <script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
</body>

</html>